#ifndef BEGINCONNINSDESTHANDLERB_H
#define BEGINCONNINSDESTHANDLERB_H

#include "BeginConnInsDestHandler.h"
#include "InsteadHttpUrl.h"

class BeginConnInsDestHandlerB:public BeginConnInsDestHandler
{
public:
	BeginConnInsDestHandlerB(const InsteadHttpUrl &url,DWORD recvCount):BeginConnInsDestHandler(url),m_oriRecvCount(recvCount){}

	~BeginConnInsDestHandlerB(){}

protected:
	virtual ITransHandler* GetNextHandler();

	virtual ExecuteResultCode OnExecuteError(ClientContext&,OVERLAPPED*,ExecuteResultCode);

private:
	static log4cplus::Logger log;

	DWORD m_oriRecvCount;
};

#endif